package jps.incremental.storage.treediff.digest;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

/**
 * @author Sergey Serebryakov
 */
public class MD5HashProvider implements HashProvider {
    @Override
    public MessageDigest getMessageDigest() {
        try {
            return MessageDigest.getInstance("MD5");
        }
        catch (NoSuchAlgorithmException e) {
            throw new RuntimeException("No MD5 implementation? Really?");
        }
    }
}
